S0="${BASH_SOURCE[0]}"
DIRNAME="$( dirname "$S0")"
DIR="$(cd "$DIRNAME" && pwd)"

echo "如果刚从cocoscreator发布新的资源,则应选择默认n;如果要利用data_ori还原重新写入版本号,则选择y"
read -p "regen? [y/N]: " input
input="${input:-n}"
if [ "$input" == "y" ]; then
    echo "regen"
    rm -rf $DIR/../CreatorProj/build/android/data
    cp -r $DIR/../CreatorProj/build/android/data_ori $DIR/../CreatorProj/build/android/data
fi

read -p "input build nubmer[1]: " input
input="${input:-1}"
export BUILD_NUMBER=${input}
echo "BUILD_NUMBER=${BUILD_NUMBER}"

$DIR/genhot.sh android 1

./progress.sh 1